package com.future.factory;

/**
 * Description:
 *
 * @author weiruibai.vendor
 * Date: 2021/9/8 11:26
 */
public class Main {

    public static void main(String[] args) {
        AbstractFactory factory = new DefaultAbstractFactory();

        Car car = factory.car();
        car.createCar();
        Food food = factory.food();
        food.createFood();

        Weapon weapon = factory.weapon();
        weapon.createWeapon();
    }
}
